import request from '@/utils/request'

class AddressModel {
  // 地址详情
  static sync() {
    return request<any, any>({
      url: '/address/syncAllStoreList',
      method: 'GET'
    })
  }
  // 地址详情
  static getDetail(addressId: number) {
    return request<any, any>({
      url: '/address/detail',
      method: 'GET',
      params: { addressId }
    })
  }
  // 地址列表
  static getList(data: any) {
    return request<any, any>({
      url: '/address/list',
      method: 'POST',
      data
    })
  }
}

export default AddressModel
